<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PasantesCreateDlg" widgetVar="PasantesCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{bundle.CreatePasantesTitle}">

            <h:form id="PasantesCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{pasantesController.selected != null}">

                        <p:outputLabel value="#{bundle.CreatePasantesLabel_idpracticas}" for="idpracticas" />
                        <p:inputText id="idpracticas" value="#{pasantesController.selected.idpracticas}" title="#{bundle.CreatePasantesTitle_idpracticas}" required="true" requiredMessage="#{bundle.CreatePasantesRequiredMessage_idpracticas}"/>

                        <p:outputLabel value="#{bundle.CreatePasantesLabel_tipoid}" for="tipoid" />
                        <p:inputText id="tipoid" value="#{pasantesController.selected.tipoid}" title="#{bundle.CreatePasantesTitle_tipoid}" required="true" requiredMessage="#{bundle.CreatePasantesRequiredMessage_tipoid}"/>

                        <p:outputLabel value="#{bundle.CreatePasantesLabel_numdoc}" for="numdoc" />
                        <p:inputText id="numdoc" value="#{pasantesController.selected.numdoc}" title="#{bundle.CreatePasantesTitle_numdoc}" required="true" requiredMessage="#{bundle.CreatePasantesRequiredMessage_numdoc}"/>

                        <p:outputLabel value="#{bundle.CreatePasantesLabel_nombres}" for="nombres" />
                        <p:inputText id="nombres" value="#{pasantesController.selected.nombres}" title="#{bundle.CreatePasantesTitle_nombres}" required="true" requiredMessage="#{bundle.CreatePasantesRequiredMessage_nombres}"/>

                        <p:outputLabel value="#{bundle.CreatePasantesLabel_apellidos}" for="apellidos" />
                        <p:inputText id="apellidos" value="#{pasantesController.selected.apellidos}" title="#{bundle.CreatePasantesTitle_apellidos}" required="true" requiredMessage="#{bundle.CreatePasantesRequiredMessage_apellidos}"/>

                        <p:outputLabel value="#{bundle.CreatePasantesLabel_telefonofijo}" for="telefonofijo" />
                        <p:inputText id="telefonofijo" value="#{pasantesController.selected.telefonofijo}" title="#{bundle.CreatePasantesTitle_telefonofijo}" required="true" requiredMessage="#{bundle.CreatePasantesRequiredMessage_telefonofijo}"/>

                        <p:outputLabel value="#{bundle.CreatePasantesLabel_celular}" for="celular" />
                        <p:inputText id="celular" value="#{pasantesController.selected.celular}" title="#{bundle.CreatePasantesTitle_celular}" required="true" requiredMessage="#{bundle.CreatePasantesRequiredMessage_celular}"/>

                        <p:outputLabel value="#{bundle.CreatePasantesLabel_correo}" for="correo" />
                        <p:inputText id="correo" value="#{pasantesController.selected.correo}" title="#{bundle.CreatePasantesTitle_correo}" required="true" requiredMessage="#{bundle.CreatePasantesRequiredMessage_correo}"/>

                        <p:outputLabel value="#{bundle.CreatePasantesLabel_nit}" for="nit" />
                        <p:inputText id="nit" value="#{pasantesController.selected.nit}" title="#{bundle.CreatePasantesTitle_nit}" required="true" requiredMessage="#{bundle.CreatePasantesRequiredMessage_nit}"/>

                        <p:outputLabel value="#{bundle.CreatePasantesLabel_nombre}" for="nombre" />
                        <p:inputText id="nombre" value="#{pasantesController.selected.nombre}" title="#{bundle.CreatePasantesTitle_nombre}" required="true" requiredMessage="#{bundle.CreatePasantesRequiredMessage_nombre}"/>

                        <p:outputLabel value="#{bundle.CreatePasantesLabel_telefono}" for="telefono" />
                        <p:inputText id="telefono" value="#{pasantesController.selected.telefono}" title="#{bundle.CreatePasantesTitle_telefono}" required="true" requiredMessage="#{bundle.CreatePasantesRequiredMessage_telefono}"/>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pasantesController.saveNew}" value="#{bundle.Save}" update="display,:PasantesListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PasantesCreateDialog);"/>
                    <p:commandButton value="#{bundle.Cancel}" onclick="PasantesCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
